import { LOGIN_TIME, TOKEN_EXPIRES } from '@/constants'
import { getItem } from './storage'

export function isCheckTimeout() {
  // 当前时间戳
  var currentTime = Date.now()
  // 缓存时间戳
  var timeStamp = getItem(LOGIN_TIME)
  return currentTime - timeStamp > TOKEN_EXPIRES
}
